import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
      meta: {
        istabar: true,
      }
    },
    {
      path: '/list',
      name: 'list',
      component: () => import('../views/listView.vue'),
      meta: {
        istabar: true
      }
    },
    {
      path: '/cart',
      name: 'cart',
      component: () => import('../views/cartView.vue'),
      meta: {
        istabar: true
      }
    },
    {
      path: '/me',
      name: 'me',
      component: () => import('../views/meView.vue'),
      meta: {
        istabar: true
      }
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/loginView.vue')
    },
    {
      path: '/detail',
      name: 'detail',
      component: () => import('../views/detailView.vue')
    },
    {
      path: '/reg',
      name: 'reg',
      component: () => import('../views/regView.vue')
    },
    {
      path: '/link',
      name: 'link',
      component: () => import('../views/linkView.vue')
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    },
    {
      path: '/edit',
      name: 'edit',
      component: () => import('../views/editView.vue')
    },
    {
      path: '/word',
      name: 'word',
      component: () => import('../views/wordView.vue')
    },
    {
      path: '/search',
      name: 'search',
      component: () => import('../views/searchView.vue')
    },
    {
      path: '/hot',
      name: 'hot',
      component: () => import('../views/hotView.vue')
    },

  ]
})

export default router
